package wbw.action;
import com.google.protobuf.InvalidProtocolBufferException;
import msginfo.Msg.CMsg;
import wbw.Util.DbUtil;
import wbw.Util.DbUtil.TableName;
import wbw.server.ServerAgentThread;
import msginfo.Msg.CMsgRoleinfo;
public class DelRoleDataAction extends Action {
	int roleID;
	public DelRoleDataAction(ServerAgentThread sa,CMsg cmsg) throws Exception{
		CMsgRoleinfo cr=CMsgRoleinfo.parseFrom(cmsg.getMsgbody());
		this.sa=sa;
		this.roleID=cr.getId();
		System.out.println("@@@@@@@@@@");
	}
	@Override
	public CMsg doAction() {
		System.out.println("$$$$$$$$$$");
		DbUtil.Delete(TableName.ROLE, roleID+"");
		// TODO Auto-generated method stub
		return null;
	}

}
